package com.hy.heath.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class HealthKnowledge {
    @TableId(type = IdType.AUTO)
    private Integer knowledgeId;
    private String title;
    private String content;
    private String category;
    private String author;
    @TableField("view_count")
    private Integer viewCount;
    @TableField("like_count")
    private Integer likeCount;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}

